package com.ms.demo;

public class TestMain {

    public static void main(String[] args) {

        MealBuilder mealBuilder = new MealBuilder();

        Meal vegMeal = mealBuilder.prepareVegMeal();
        System.out.println("素食套餐");
        vegMeal.showItems();
        System.out.println("合计: "+vegMeal.getCost());

        System.out.println();

        Meal nonVegMeal = mealBuilder.prepareNonVegMeal();
        System.out.println("非素食套餐");
        nonVegMeal.showItems();
        System.out.println("合计: "+nonVegMeal.getCost());
    }
}